from matplotlib import pyplot as plt
import numpy as np

data = np.loadtxt('err.csv', dtype = np.float64)
print(data)

x = data[:, 0]
y = data[:, 1]
err = data[:, 2]

figure = plt.figure()
plt.subplot(1, 3, 1)
plt.xlabel('n')
plt.ylabel('err')
plt.plot(x, err) 
plt.subplot(1, 3, 2)
plt.xlabel('log(n)')
plt.ylabel('err')
plt.plot(np.log2(x), err)
plt.subplot(1, 3, 3)
plt.xlabel('log(n)')
plt.ylabel('log(err)')
plt.plot(np.log2(x), np.log2(err))
plt.show()


